package com.youkeyi.ddy.cloud.basic.crm.supplier.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 合作商/供应商表
 * </p>
 *
 * @author xiawang.liu
 * @since 2024-05-14
 */
@TableName("tbl_supplier")
public class TblSupplier extends Model<TblSupplier> {

    private static final long serialVersionUID = 1L;

    /**
     * Id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("primary_key")
    private String primaryKey;

    /**
     * 解决并发更新问题,每次更新需要用 uuid 做比较判断数据是否已变更
     */
    @TableField("uuid")
    private String uuid;

    /**
     * 旧的uuid,mybatis 更新时需要
     */
    @TableField("old_uuid")
    private String oldUuid;

    /**
     * 主体key
     */
    @TableField("corp_key")
    private String corpKey;

    /**
     * 来源的部门key
     */
    @TableField("source_organization_key")
    private String sourceOrganizationKey;

    /**
     * 来源的部门姓名
     */
    @TableField("source_organization_name")
    private String sourceOrganizationName;

    /**
     * 来源的顾问key
     */
    @TableField("source_user_key")
    private String sourceUserKey;

    /**
     * 来源的顾问姓名
     */
    @TableField("source_user_name")
    private String sourceUserName;

    /**
     * 类别
     */
    @TableField("category")
    private Integer category;

    /**
     * 公司名
     */
    @TableField("company_name")
    private String companyName;

    /**
     * 联系人名
     */
    @TableField("name")
    private String name;

    /**
     * 电话
     */
    @TableField("phone")
    private String phone;

    /**
     * 微信ID或微信名
     */
    @TableField("wechat_id")
    private String wechatId;

    /**
     * 所属板块
     */
    @TableField("plate")
    private String plate;

    /**
     * 所属板块
     */
    @TableField("plate_key")
    private String plateKey;

    /**
     * 合作项目
     */
    @TableField("collaborative_projects_key")
    private String collaborativeProjectsKey;

    /**
     * 合作项目
     */
    @TableField("collaborative_projects")
    private String collaborativeProjects;

    /**
     * 合作模式描述
     */
    @TableField("cooperation_mode_desc")
    private String cooperationModeDesc;

    /**
     * 分成描述
     */
    @TableField("commission_sharing_desc")
    private String commissionSharingDesc;

    /**
     * 备注
     */
    @TableField("remark")
    private String remark;

    /**
     * 附件key，多个时用英文;分隔
     */
    @TableField("annex_key")
    private String annexKey;

    /**
     * 是否删除
     */
    @TableField("is_deleted")
    private Integer isDeleted;

    /**
     * 创建人
     */
    @TableField("create_user_key")
    private String createUserKey;

    /**
     * 创建人名称
     */
    @TableField("create_user_name")
    private String createUserName;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;

    /**
     * 更新人
     */
    @TableField("update_user_key")
    private String updateUserKey;

    /**
     * 更新人名称
     */
    @TableField("update_user_name")
    private String updateUserName;

    /**
     * 更新时间
     */
    @TableField("update_time")
    private Date updateTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public String getPrimaryKey() {
        return primaryKey;
    }

    public void setPrimaryKey(String primaryKey) {
        this.primaryKey = primaryKey;
    }
    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }
    public String getOldUuid() {
        return oldUuid;
    }

    public void setOldUuid(String oldUuid) {
        this.oldUuid = oldUuid;
    }
    public String getCorpKey() {
        return corpKey;
    }

    public void setCorpKey(String corpKey) {
        this.corpKey = corpKey;
    }
    public String getSourceOrganizationKey() {
        return sourceOrganizationKey;
    }

    public void setSourceOrganizationKey(String sourceOrganizationKey) {
        this.sourceOrganizationKey = sourceOrganizationKey;
    }
    public String getSourceOrganizationName() {
        return sourceOrganizationName;
    }

    public void setSourceOrganizationName(String sourceOrganizationName) {
        this.sourceOrganizationName = sourceOrganizationName;
    }
    public String getSourceUserKey() {
        return sourceUserKey;
    }

    public void setSourceUserKey(String sourceUserKey) {
        this.sourceUserKey = sourceUserKey;
    }
    public String getSourceUserName() {
        return sourceUserName;
    }

    public void setSourceUserName(String sourceUserName) {
        this.sourceUserName = sourceUserName;
    }
    public Integer getCategory() {
        return category;
    }

    public void setCategory(Integer category) {
        this.category = category;
    }
    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }
    public String getWechatId() {
        return wechatId;
    }

    public void setWechatId(String wechatId) {
        this.wechatId = wechatId;
    }
    public String getPlate() {
        return plate;
    }

    public void setPlate(String plate) {
        this.plate = plate;
    }
    public String getPlateKey() {
        return plateKey;
    }

    public void setPlateKey(String plateKey) {
        this.plateKey = plateKey;
    }
    public String getCollaborativeProjectsKey() {
        return collaborativeProjectsKey;
    }

    public void setCollaborativeProjectsKey(String collaborativeProjectsKey) {
        this.collaborativeProjectsKey = collaborativeProjectsKey;
    }
    public String getCollaborativeProjects() {
        return collaborativeProjects;
    }

    public void setCollaborativeProjects(String collaborativeProjects) {
        this.collaborativeProjects = collaborativeProjects;
    }
    public String getCooperationModeDesc() {
        return cooperationModeDesc;
    }

    public void setCooperationModeDesc(String cooperationModeDesc) {
        this.cooperationModeDesc = cooperationModeDesc;
    }
    public String getCommissionSharingDesc() {
        return commissionSharingDesc;
    }

    public void setCommissionSharingDesc(String commissionSharingDesc) {
        this.commissionSharingDesc = commissionSharingDesc;
    }
    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
    public String getAnnexKey() {
        return annexKey;
    }

    public void setAnnexKey(String annexKey) {
        this.annexKey = annexKey;
    }
    public Integer getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(Integer isDeleted) {
        this.isDeleted = isDeleted;
    }
    public String getCreateUserKey() {
        return createUserKey;
    }

    public void setCreateUserKey(String createUserKey) {
        this.createUserKey = createUserKey;
    }
    public String getCreateUserName() {
        return createUserName;
    }

    public void setCreateUserName(String createUserName) {
        this.createUserName = createUserName;
    }
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
    public String getUpdateUserKey() {
        return updateUserKey;
    }

    public void setUpdateUserKey(String updateUserKey) {
        this.updateUserKey = updateUserKey;
    }
    public String getUpdateUserName() {
        return updateUserName;
    }

    public void setUpdateUserName(String updateUserName) {
        this.updateUserName = updateUserName;
    }
    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "TblSupplier{" +
            "id=" + id +
            ", primaryKey=" + primaryKey +
            ", uuid=" + uuid +
            ", oldUuid=" + oldUuid +
            ", corpKey=" + corpKey +
            ", sourceOrganizationKey=" + sourceOrganizationKey +
            ", sourceOrganizationName=" + sourceOrganizationName +
            ", sourceUserKey=" + sourceUserKey +
            ", sourceUserName=" + sourceUserName +
            ", category=" + category +
            ", companyName=" + companyName +
            ", name=" + name +
            ", phone=" + phone +
            ", wechatId=" + wechatId +
            ", plate=" + plate +
            ", plateKey=" + plateKey +
            ", collaborativeProjectsKey=" + collaborativeProjectsKey +
            ", collaborativeProjects=" + collaborativeProjects +
            ", cooperationModeDesc=" + cooperationModeDesc +
            ", commissionSharingDesc=" + commissionSharingDesc +
            ", remark=" + remark +
            ", annexKey=" + annexKey +
            ", isDeleted=" + isDeleted +
            ", createUserKey=" + createUserKey +
            ", createUserName=" + createUserName +
            ", createTime=" + createTime +
            ", updateUserKey=" + updateUserKey +
            ", updateUserName=" + updateUserName +
            ", updateTime=" + updateTime +
        "}";
    }
}
